package com.lenovo.lcdm.type.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lenovo.lcdm.type.dto.AttributeGroupDTO;
import com.lenovo.lcdm.type.entity.TypeAttributeGroup;
import com.lenovo.lcdm.type.entity.TypeAttributeGroupAttribute;

import java.util.List;

/**
* @author xujing30
* @description 针对表【type_attribute_group】的数据库操作Service
* @createDate 2024-01-17 16:56:58
*/
public interface TypeAttributeGroupService extends IService<TypeAttributeGroup> {

    void saveGroup(AttributeGroupDTO attributeGroupDTO);

    void deleteGroup(Long groupId);

    void batchDelAttributesOfGroup(List<Long> localAttributeIds);

    /**
     * 变更type下的localAttribute到另外一个group
     * @param localAttributeIds
     * @param groupId
     * @param typeId
     */
    void changeGroupForAttributes(List<Long> localAttributeIds, Long groupId, Long typeId);

    /**
     * 查询组下的属性
     * @param groupIds
     * @return
     */
    List<TypeAttributeGroupAttribute> queryGroupAttribute(List<Long> groupIds);



}
